import request from '@/utils/request'

const api = {
    doc: '/jxgimsa/pollutant/doc',
    auth: '/jxgimsa/pollutant/process'
}

export function GetList(param) {
    return request({
        url: api.doc,
        method: 'get',
        params: param
    })
}
export function Delete(id) {
    return request({
        url: api.doc + '/' + id,
        method: 'delete',
        data: ''
    })
}
export function Add(data) {
    return request({
        url: api.doc,
        method: 'post',
        data: data
    })
}
export function Edit(data) {
    return request({
        url: api.doc,
        method: 'put',
        data: data
    })
}

export function AuthSuc(data) {
    return request({
        url: api.auth + '/' + data.detailId,
        method: 'post',
        data: data
    })
}

export function AuthFail(data) {
    return request({
        url: api.auth + '/' + data.detailId,
        method: 'post',
        data: data
    })
}

